package com.itheima.stock.ex;

import com.itheima.stock.common.ResponseCode;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @ClassName CustomerException
 * @Description TODO
 * @Author Zack
 * @Date 2022/12/6 18:43
 * @Version 1.0
 */
public class CustomerException extends Exception {

    public CustomerException() {
    }

    public CustomerException(String message) {
        super(message);
    }

    public CustomerException(ResponseCode responseCode) {
        super(responseCode.getMessage());
    }
}
